/*
整个项目api的统一管理
*/
import request from './request'

//请求首页左侧的表格的数据

export default {
    getTableData(){
        return request({
            url:'/home/getTableData',
            method:'get',
            // mock:true
        });
    },
    getCountData(){
        return request({
            url:'/home/getCountData',
            method:'get',
            // mock:false
        });
    },
    getChartData(){
        return request({
            url:'/home/getChartData',
            method:'get',
            // mock:false
        });
    },
    getUserData(data){
        return request({
            url:'/home/getUserData',
            method:'get',
            // mock:false
            data,
        });
    },
    deleteUserData(data){
        return request({
            url:'/user/deleteUserData',
            method:'get',
            // mock:false
            data,
        });
    },
    addUser(data){
        return request({
            url:'/user/addUser',
            method:'post',
            // mock:false
            data,
        });
    },
    editUser(data){
        return request({
            url:'/user/editUser',
            method:'post',
            // mock:false
            data,
        });
    },
    getMenu(params) {
    return request({
      url: '/permission/getMenu',
      method: 'post',
      data: params
    })
}
}